package com.lottery.game.common.constants;

/**
 * 静态常量类
 * 类型标记等
 * @author zhuiyv
 * @date 2018-06-15
 */
public class GameConstants {

	public static final String ENV_LOCAL = "local";
	public static final String ENV_UAT = "uat";
	public static final String ENV_DEV = "dev";
	public static final String ENV_PROD = "prod";

	public static final String TICKET_KEY = "ticket";

	public static final String SENDER_SYSTEM = "system";
	public static final String TOKEN = "token";
	public static final String CHAT_TYPE = "chatType";
	public static final String CHAT_ID = "chatId";
	public static final String ROOM_NUMBER = "roomNumber";
	public static final String USER_ID = "userId";
	public static final String RANDOM_USER_ID = "randomUserId";

	//聊天类型  单聊
	public static final String CHATTYPE_SINGLECHAT="2";

	public static final String CHATTYPE_CONNECT = "99";

	//聊天类型  群聊
	public static final String CHATTYPE_GROUPCHAT="0";

	//聊天类型  客服聊天
	public static final String CHATTYPE_CUSSERVICECHAT="1";

	/**
	 * 	房间控制
	 */
	public static final String CHAT_TYPE_ROOM_MSG  = "3";

	//聊天类型  客服回复
    public static final String CHATTYPE_CUSREPLY="10";

	//聊天类型  系统发给前端的消息
	public static final String CHATTYPE_SYSTEM_MSG = "9";

	//系统固定 chatId
	public static final String SYS_PARAM_CHATID = "sys_chatId";

	//系统固定 chatId
	public static final String SYS_OVERALL = "sys_Overall";

	//系统消息 -禁言
	public static final String SYS_MSG_BANNED = "01";
	//系统消息 -封号
    public static final String SYS_MSG_CLOSEUSER = "02";
    //系统消息 -封IP
    public static final String SYS_MSG_CLOSEIP = "03";

	/**
	 * 04-06 已占用
	 * 公告管理-消息
	 */
	public static final String SYS_MSG_NOTICE = "07";
	/**
	 * 上下分反馈
	 */
	public static final String SYS_MSG_SXFEN = "08";
	//系统消息 上下分请求数
    public  final  static String SYS_MSG_SXFEN_COUNT  = "sys_sxfen_count";

	/**
	 * 	系统消息 客服消息通知 推给后端
	 */
	public  final  static String SYS_MSG_CUSSERVICECHAT_NOTICE = "sys_cusserviceChat_notice";

	//竞猜进行
	public static final String GameIssueStatus_Running = "0";
	//竞猜封盘
	public static final String GameIssueStatus_Close = "1";
	//开奖完成
	public static final String GameIssueStatus_Finish = "2";
	//开奖异常  手动开奖
	public static final String GameIssueStatus_Error = "-1";
	//系统维护
    public static final String GameIssueStatus_DownTime = "-2";


	public static final String Str_ZERO ="0";
	public static final String Str_ONE ="1";

	//下注
	public static final String BlanceChangeType_Bet = "bet";
	//取消下注
	public static final String BlanceChangeType_CancelBet = "cancelBet";
	//奖金
	public static final String BlanceChangeType_Bonus = "bonus";
	//充值
	public static final String BlanceChangeType_Recharge = "recharge";
	//提现 -下分
	public static final String BlanceChangeType_Downchange = "downchange";
	//补分
    public static final String BlanceChangeType_Supplement = "supplement";
    //扣分
    public static final String BlanceChangeType_Koufeng = "koufeng";
    //送分
    public static final String BlanceChangeType_Songfen = "songfen";
    //回水
    public static final String BlanceChangeType_Huishui = "huishui";

    //组合类查询
	//下注相关的，下注下注取消奖金
    public static final String BlanceChangeType_Q_BetAll = "betAll";
    //出入相关的  充值提现
    public static final String BlanceChangeType_Q_InOut = "inOut";

	/**
	 * 用户日志 读取IP失败
	 */
	public static final String GET_IP_ERROR = "读取失败";

	public static final String DEFAULT_USER_PHOTO_PARSE = "defaultGameUser/%s.jpg";

	/**
	 * 后台管理系统 心跳请求 消息
	 */
	public static final String WEBSOCKET_SYSTEM_HEART = "systemHeart";
	/**
	 * 服务器WS 回复后台管理系统心跳 消息
	 */
	public static final String WEBSOCKET_SERVER_HEART = "serviceHeart";

	public static final String DOMAIN_NAME = "http://www.dhpc28.com/";

	/**
	 * Description: 竞猜维护中
	 */
	public static final Integer GAME_STATUS_MAINTAIN = 0;
	/**
	 * Description: 竞猜进行
	 */
	public static final Integer GAME_STATUS_START = 1;

	/**
	 * Description: 竞猜封盘
	 */
	public static final Integer GAME_STATUS_CLOSURE = 2;

	/**
	 * Description: 竞猜开奖
	 */
	public static final Integer GAME_STATUS_LOTTERY_DRAW  = 3;

	public static final Integer WEBSOCKET_MESSAGE_STATUS_CREATE = 0;
	public static final Integer WEBSOCKET_MESSAGE_STATUS_RECEIVED = 1;

	public static final String LOCK_STATUS_TASK_NAME_GAME_THREAD = "game-thread-runner";

	public static final String THREAD_PREFIX = "THREAD-";

	public static final int TASK_LOCK_STATUS_STARTING = 0;
	public static final int TASK_LOCK_STATUS_RUNNING = 1;
	public static final int TASK_LOCK_STATUS_OFFLINE = -1;

}
